css style property: Use gtk_internal_return_if_fail
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Sep 2015 12:06:17 +0000 (08:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 8 Sep 2015 12:07:34 +0000 (08:07 -0400)
gtk/gtkcssstyleproperty.c

index 3fe41c73d33e7fb56b003c3fd0e2f7ea8b5c315a..6cf0ccf1d3db4242d12f9a45fbdff08b1402568a 100644 (file)
@@ -30,6 +30,7 @@
 #include "gtkintl.h"
 #include "gtkprivatetypebuiltins.h"
 #include "deprecated/gtkstylepropertiesprivate.h"
+#include "gtkprivate.h"
 
 /* this is in case round() is not provided by the compiler, 
  * such as in the case of C89 compilers, like MSVC
@@ -301,7 +302,7 @@ _gtk_css_style_property_lookup_by_id (guint id)
       g_assert (gtk_css_style_property_class);
     }
 
-  g_return_val_if_fail (id < gtk_css_style_property_class->style_properties->len, NULL);
+  gtk_internal_return_val_if_fail (id < gtk_css_style_property_class->style_properties->len, NULL);
 
   return g_ptr_array_index (gtk_css_style_property_class->style_properties, id);
 }
@@ -319,7 +320,7 @@ _gtk_css_style_property_lookup_by_id (guint id)
 gboolean
 _gtk_css_style_property_is_inherit (GtkCssStyleProperty *property)
 {
-  g_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), FALSE);
+  gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), FALSE);
 
   return property->inherit;
 }
@@ -337,7 +338,7 @@ _gtk_css_style_property_is_inherit (GtkCssStyleProperty *property)
 gboolean
 _gtk_css_style_property_is_animated (GtkCssStyleProperty *property)
 {
-  g_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), FALSE);
+  gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), FALSE);
 
   return property->animated;
 }
@@ -354,7 +355,7 @@ _gtk_css_style_property_is_animated (GtkCssStyleProperty *property)
 GtkCssAffects
 _gtk_css_style_property_get_affects (GtkCssStyleProperty *property)
 {
-  g_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), 0);
+  gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), 0);
 
   return property->affects;
 }
@@ -371,7 +372,7 @@ _gtk_css_style_property_get_affects (GtkCssStyleProperty *property)
 guint
 _gtk_css_style_property_get_id (GtkCssStyleProperty *property)
 {
-  g_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), 0);
+  gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), 0);
 
   return property->id;
 }
@@ -389,7 +390,7 @@ _gtk_css_style_property_get_id (GtkCssStyleProperty *property)
 GtkCssValue *
 _gtk_css_style_property_get_initial_value (GtkCssStyleProperty *property)
 {
-  g_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), NULL);
+  gtk_internal_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), NULL);
 
   return property->initial_value;
 }